﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyInfo.aspx.cs" Inherits="com.dz.web.User.MyInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>我的资料</title>
     <LINK rel=STYLESHEET type=text/css href="/style/home.css" />
      <script src="/javascript/must.js" type="text/javascript"></script>
     <script src="/javascript/ajax.js" type="text/javascript"></script>
     <script>
     function LoginOut()
    {
        MyAjax.ExcuteScript("loginout","out",ShowLoginOutBack);
    }
    function ShowLoginOutBack(result)
    {
        if(result.value.indexOf("成功")>-1)
        {
           window.location.href='/default.aspx';
        }
    }
     </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <DIV id=topBar>
<UL>
  <LI id=m_home><A href="/default.aspx">欢迎光临<%=com.dz.common.AppConfig.SiteName%>网</A> </LI>
   
   <li><label id="lblUserName" runat="server"></label>&nbsp;&nbsp;<a href="/User/MyBookCase.aspx" target="_blank" class="green">我的书架</a>&nbsp;<a href="/User/MyCollect.aspx" target="_blank" class="green">我的推荐</a>&nbsp;&nbsp;<a href="#" onclick="LoginOut()">退出</a></li>
    <li class="r"><a href="javascript:AddToFavorite();">加入收藏</a> </li>
      <li class="r"><a href="javascript:setHomepage();">设为首页</a> </li>
    <li class="r"><a href="/ShortCut.aspx" target="_blank">加入桌面</a> </li>
 </UL>
</DIV>

    <DIV class=g_main>
<DIV class="l mainl">
<DIV class=deals>
<DIV class="top fudong"><IMG src="/images/bg_scodtop.png"> 
<DIV class=bbsmenu>
<UL>
 <LI  class=over><A href="/User/MyBookCase.aspx">我的书架</A></LI>
  <LI  class=over><A href="/User/MyCollect.aspx">我的推荐</A></LI>
  <LI class=over><A href="/User/MyReview.aspx">我的评论</A></LI>
  <LI><A href="/User/MyInfo.aspx">资料管理</A></LI>
  <LI class=over><A href="/User/ContactUS.aspx">联系我们</A></LI>
  </UL></DIV></DIV>
<DIV class=mid>
<DIV class=gbt_line>
<DIV class=l>我的信息</DIV>
<DIV class=c></DIV></DIV>
<DIV class=sect>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center>
  <TBODY>
  <TR>
    <TD style="FONT-SIZE: 14px" height=50 align=right><FONT color=red>*</FONT> 
      邮　　箱：</TD>
    <TD width="75%"><INPUT id="email" class=kuangaa_login maxLength=200 size=28 > </TD></TR>
  <TR>
    <TD style="FONT-SIZE: 14px" height=50 align=right><FONT color=red>*</FONT> 
      用户名称：</TD>
    <TD><INPUT id="userName" class=kuangaa_login size=28  runat="server" disabled=disabled></TD></TR>
  <TR>
    <TD style="FONT-SIZE: 14px" height=50 align=right><FONT color=red>*</FONT> 
      用户密码：</TD>
    <TD><INPUT id="pwd" class=kuangaa_login size=28 type=password 
></TD></TR>
  <TR>
    <TD style="FONT-SIZE: 14px" height=50 align=right><FONT color=red>*</FONT> 
      确认密码：</TD>
    <TD><INPUT id="pwd2" class=kuangaa_login size=28 type=password 
></TD></TR>
    <TR>
    <TD style="FONT-SIZE: 14px" height=50 align=right><FONT color=red>*</FONT> 
      昵&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称：</TD>
    <TD><INPUT id="nickName" class=kuangaa_login size=28  runat="server" disabled=disabled
></TD></TR>




  <TR>
    <TD style="FONT-SIZE: 14px" height=20 align=right></TD>
    <TD><INPUT class="btn" type=button value="修 改" onclick="Update()" > 
      </TD></TR></TBODY></TABLE></DIV>

</DIV>
<DIV class=bom><IMG src="/images/bg_scodbom.png"></DIV></DIV></DIV>
<DIV class="r mainr">
<DIV class="phb">
<DIV class=left>
<DIV class=hd>
<H3>热门作品</H3></DIV>

<asp:Label ID="lblVipClick" runat="server"></asp:Label>
</DIV>
                      
</DIV>

</DIV>
<DIV class=c></DIV></DIV>
<DIV id=tcopyright class=tcopyright>
<div>
<p><%=com.dz.common.AppConfig.SiteName%>所收录免费小说作品、书库评论及<%=com.dz.common.AppConfig.SiteName%>所做之广告均属用户个人行为，与<%=com.dz.common.AppConfig.SiteName%>无关</p><p>本站小说完全收录于互联网,共享给网友免费阅读,如有侵害你权力的地方，请与管理员里联系</p>
</div>
<DIV><A href="#/">关于<%=com.dz.common.AppConfig.SiteName%> </A>| <A 
href="#">版权说明</A> | <A 
href="#">服务条款</A>  </DIV>
<DIV class=en>Copyright &copy; 2010 <a href="<%=com.dz.common.AppConfig.SiteUrl%>" target="_blank"><%=com.dz.common.AppConfig.SiteName%> </a> 

 </DIV>
<DIV><%=com.dz.common.AppConfig.SiteName%>  <A href="<%=com.dz.common.AppConfig.SiteUrl%>" 
target=_blank>版权所有</A> </DIV></DIV>
    </div>
    <script>

function Update()
{
    var email=$("email");
   
    var pwd=$("pwd");
    var pwd2=$("pwd2");
   
    if(email.value=="")
    {
        alert("请输入邮箱!");
        email.focus();
        return false;
    }
    if(isEmail(email.value)==false)
    {
        alert("邮箱地址格式不正确!");
        email.focus();
        return false;
    }
    
    if(pwd.value=="")
    {
        alert("请输入密码!")
        pwd.focus();
        return false;
    }
    if(pwd2.value=="")
    {
        alert("请输入确认密码!");
        pwd2.focus();
        return false;
    }
    if(pwd.value!=pwd2.value)
    {
        alert("两次密码不相同!");
        return false;
    }
   
  
    
    var script=email.value+"$"+pwd.value;
    MyAjax.ExcuteScript("updateuserinfo",script,ShowBack);
    
}
function isEmail(str){ 
res = /^[0-9a-zA-Z_\-\.]+@[0-9a-zA-Z_\-]+(\.[0-9a-zA-Z_\-]+)*$/; 
var re = new RegExp(res); 
return !(str.match(re) == null); 
} 

function ShowBack(result)
{
     alert(result.value);
}
</script>
    </form>
</body>
</html>
